package com.ssy.lingxi.gateway.handler.exception;
/**
* 自定义登录异常
* @author wrc
* @date 2020/5/21
*/
public class LoginException extends RuntimeException{
    private static final long serialVersionUID = 2989677035503655061L;

    //异常信息
    private String message;
    //异常信息
    private Integer code;
    //构造函数
    public LoginException(String message,Integer code){
        super(message);
        this.message = message;
        this.code=code;
    }
    public LoginException(){
    }
    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
